<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    <link rel="canonical" href="http://xiejm.com/Hive/Hive--install.html">
    
    
    <title>Hive--安装 | XieJM&#39;s Blog | 建立博客是为了记录工作经验以及生活点滴,也是将知识和经验分享给需要的朋友，希望对你有帮助！</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#00bcd4">
    
    
    <meta name="keywords" content="Hive">
    <meta name="description" content="本文主要是Hive部署的详细步骤 1.基本环境 CentOS 6.7 JDK1.8 Hadoop-2.6.0-cdh5.7.0 Hive-1.1.0-cdh5.7.0  Hive是基于Hadoop的，Hadoop的部署本文不在复述。 2.上传解压1tar -zxvf Hive-1.1.0-cdh5.7.0.tar.gz 3.配置环境变量123456vim /etc/profile#添加下面内容到/">
<meta name="keywords" content="Hive">
<meta property="og:type" content="article">
<meta property="og:title" content="Hive--安装">
<meta property="og:url" content="http://xiejm.com/Hive/Hive--install.html">
<meta property="og:site_name" content="XieJM&#39;s Blog">
<meta property="og:description" content="本文主要是Hive部署的详细步骤 1.基本环境 CentOS 6.7 JDK1.8 Hadoop-2.6.0-cdh5.7.0 Hive-1.1.0-cdh5.7.0  Hive是基于Hadoop的，Hadoop的部署本文不在复述。 2.上传解压1tar -zxvf Hive-1.1.0-cdh5.7.0.tar.gz 3.配置环境变量123456vim /etc/profile#添加下面内容到/">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2017-10-02T15:44:44.873Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hive--安装">
<meta name="twitter:description" content="本文主要是Hive部署的详细步骤 1.基本环境 CentOS 6.7 JDK1.8 Hadoop-2.6.0-cdh5.7.0 Hive-1.1.0-cdh5.7.0  Hive是基于Hadoop的，Hadoop的部署本文不在复述。 2.上传解压1tar -zxvf Hive-1.1.0-cdh5.7.0.tar.gz 3.配置环境变量123456vim /etc/profile#添加下面内容到/">
    
        <link rel="alternate" type="application/atom+xml" title="XieJM&#39;s Blog" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/css/style.css?v=1.6.13">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">XieJM</h5>
          <a href="mailto:309469843@qq.com" title="309469843@qq.com" class="mail">309469843@qq.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/index.html"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives/index.html"  >
                <i class="icon icon-lg icon-archives"></i>
                归档
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags/index.html"  >
                <i class="icon icon-lg icon-tags"></i>
                标签
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories/index.html"  >
                <i class="icon icon-lg icon-th-list"></i>
                分类
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/xjmhz" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
      </ul>      
    </div>
    <footer class="footer">
    <p>欢迎加入我们的大数据交流群：<br>群1：258669058 群2：126181630</p>   
    <p>        
        <span><a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"><img src="/img/cc.png"></a></span>
        
        <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-2x icon-rss-square"></i></a></span>
        
    </p>
    <p><span>XieJM &copy; 2017</span>
    </p>
    <p><span>
            
            Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
        </span>
    </p>
</footer>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">Hive--安装</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">Hive--安装</h1>
        <h5 class="subtitle">
            
                <time datetime="2017-10-02T15:13:14.946Z" itemprop="datePublished" class="page-time">
  2017-10-02
</time>


	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/tech/">技术</a></li></ul>

            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#1-基本环境"><span class="post-toc-text">1.基本环境</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#2-上传解压"><span class="post-toc-text">2.上传解压</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#3-配置环境变量"><span class="post-toc-text">3.配置环境变量</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#4-修改hive-env-sh"><span class="post-toc-text">4.修改hive-env.sh</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#5-修改Hive-site-xml"><span class="post-toc-text">5.修改Hive-site.xml</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#6-修改日志输出"><span class="post-toc-text">6.修改日志输出</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#7-Hive启动验证"><span class="post-toc-text">7.Hive启动验证</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#8-Hive的基本操作"><span class="post-toc-text">8.Hive的基本操作</span></a></li></ol>
        </nav>
    </aside>
    
<article id="post-Hive/Hive--install"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">Hive--安装</h1>
        <div class="post-meta">
            <time class="post-time" title="2017-10-02 23:13:14" datetime="2017-10-02T15:13:14.946Z"  itemprop="datePublished">2017-10-02</time>

            
	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/tech/">技术</a></li></ul>



            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <p>本文主要是Hive部署的详细步骤</p>
<h2 id="1-基本环境"><a href="#1-基本环境" class="headerlink" title="1.基本环境"></a>1.基本环境</h2><ul>
<li>CentOS 6.7</li>
<li>JDK1.8</li>
<li>Hadoop-2.6.0-cdh5.7.0</li>
<li>Hive-1.1.0-cdh5.7.0</li>
</ul>
<p>Hive是基于Hadoop的，Hadoop的部署本文不在复述。</p>
<h2 id="2-上传解压"><a href="#2-上传解压" class="headerlink" title="2.上传解压"></a>2.上传解压</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">tar -zxvf Hive-1.1.0-cdh5.7.0.tar.gz</div></pre></td></tr></table></figure>
<h2 id="3-配置环境变量"><a href="#3-配置环境变量" class="headerlink" title="3.配置环境变量"></a>3.配置环境变量</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">vim /etc/profile</div><div class="line"><span class="comment">#添加下面内容到/etc/profile文件的最后</span></div><div class="line"></div><div class="line"><span class="comment">#set HIVE</span></div><div class="line"><span class="built_in">export</span> HIVE_HOME=/opt/software/hive</div><div class="line"><span class="built_in">export</span> PATH=<span class="variable">$HIVE_HOME</span>/bin:<span class="variable">$PATH</span></div></pre></td></tr></table></figure>
<p>保存退出后使用命令<code>source /etc/profile</code>更新环境变量</p>
<h2 id="4-修改hive-env-sh"><a href="#4-修改hive-env-sh" class="headerlink" title="4.修改hive-env.sh"></a>4.修改hive-env.sh</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">//hadoop环境设置</div><div class="line">HADOOP_HOME=/opt/software/hadoop</div><div class="line">//Hive的控制目录</div><div class="line"><span class="built_in">export</span> HIVE_CONF_DIR=/opt/software/hive/conf</div></pre></td></tr></table></figure>
<h2 id="5-修改Hive-site-xml"><a href="#5-修改Hive-site-xml" class="headerlink" title="5.修改Hive-site.xml"></a>5.修改Hive-site.xml</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim <span class="variable">$HIVE_HOME</span>/conf/hive-site.xml</div></pre></td></tr></table></figure>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div></pre></td><td class="code"><pre><div class="line">&lt;?xml version=<span class="string">"1.0"</span>?&gt;</div><div class="line">&lt;?xml-stylesheet <span class="built_in">type</span>=<span class="string">"text/xsl"</span> href=<span class="string">"configuration.xsl"</span>?&gt;</div><div class="line"></div><div class="line">&lt;configuration&gt;</div><div class="line">&lt;!--<span class="comment">######配置MySQL数据库连接串#######--&gt;</span></div><div class="line">    &lt;property&gt;</div><div class="line">        &lt;name&gt;javax.jdo.option.ConnectionURL&lt;/name&gt;</div><div class="line">        &lt;value&gt;jdbc:mysql://localhost:3306/xiejm_hive?createDatabaseIfNotExist=<span class="literal">true</span>&lt;/value&gt;</div><div class="line">    &lt;/property&gt;</div><div class="line">&lt;!--连接驱动--&gt;</div><div class="line">    &lt;property&gt;</div><div class="line">        &lt;name&gt;javax.jdo.option.ConnectionDriverName&lt;/name&gt;</div><div class="line">        &lt;value&gt;com.mysql.jdbc.Driver&lt;/value&gt;</div><div class="line">    &lt;/property&gt;</div><div class="line">&lt;!--连接用户名--&gt;</div><div class="line">    &lt;property&gt;</div><div class="line">        &lt;name&gt;javax.jdo.option.ConnectionUserName&lt;/name&gt;</div><div class="line">        &lt;value&gt;root&lt;/value&gt;</div><div class="line">    &lt;/property&gt;</div><div class="line">&lt;!--连接密码--&gt;</div><div class="line">    &lt;property&gt;</div><div class="line">        &lt;name&gt;javax.jdo.option.ConnectionPassword&lt;/name&gt;</div><div class="line">        &lt;value&gt;root&lt;/value&gt;</div><div class="line">    &lt;/property&gt;</div><div class="line"></div><div class="line">&lt;!--仓库路径配置：使用时注意权限，要有写的权限--&gt;</div><div class="line">&lt;property&gt;</div><div class="line">  &lt;name&gt;hive.metastore.warehouse.dir&lt;/name&gt;</div><div class="line">  &lt;value&gt;/user/hive/warehouse&lt;/value&gt;</div><div class="line">  &lt;description&gt;location of default database <span class="keyword">for</span> the warehouse&lt;/description&gt;</div><div class="line">&lt;/property&gt;</div><div class="line"></div><div class="line"></div><div class="line">&lt;!--在cli命令行上显示当前数据库，以及查询表的行头信息:<span class="variable">$HIVE_HOME</span>/conf/hive-site.xml--&gt;</div><div class="line">&lt;property&gt;</div><div class="line">    &lt;name&gt;hive.cli.print.header&lt;/name&gt;</div><div class="line">    &lt;value&gt;<span class="literal">true</span>&lt;/value&gt;</div><div class="line">    &lt;description&gt;Whether to <span class="built_in">print</span> the names of the columns <span class="keyword">in</span> query output.&lt;/description&gt;</div><div class="line">&lt;/property&gt;</div><div class="line">&lt;property&gt;</div><div class="line">    &lt;name&gt;hive.cli.print.current.db&lt;/name&gt;</div><div class="line">    &lt;value&gt;<span class="literal">true</span>&lt;/value&gt;</div><div class="line">    &lt;description&gt;Whether to include the current database <span class="keyword">in</span> the Hive prompt.&lt;/description&gt;</div><div class="line">&lt;/property&gt;</div><div class="line">&lt;/configuration&gt;</div></pre></td></tr></table></figure>
<h2 id="6-修改日志输出"><a href="#6-修改日志输出" class="headerlink" title="6.修改日志输出"></a>6.修改日志输出</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line"><span class="comment">#copy日志配置文件的模板</span></div><div class="line">cp <span class="variable">$HIVE_HOME</span>/conf/conf/hive-log4j.properties.template hive-log4j.properties</div></pre></td></tr></table></figure>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">hive.log.dir=<span class="variable">$&#123;java.io.tmpdir&#125;</span>/<span class="variable">$&#123;user.name&#125;</span></div><div class="line">hive.log.file=hive.log</div><div class="line"></div><div class="line"><span class="comment">#将上面内容改成下面的</span></div><div class="line">hive.log.dir=/opt/software/hive-1.1.0-cdh5.7.0/<span class="built_in">log</span>/</div><div class="line">hive.log.file=xjm_hive.log</div></pre></td></tr></table></figure>
<h2 id="7-Hive启动验证"><a href="#7-Hive启动验证" class="headerlink" title="7.Hive启动验证"></a>7.Hive启动验证</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div></pre></td><td class="code"><pre><div class="line">[root@hadoop001 ~]<span class="comment"># which hive</span></div><div class="line">/opt/software/hive-1.1.0-cdh5.7.0/bin/hive</div><div class="line"><span class="comment">###</span></div><div class="line">启动前记得加上mysql驱动包</div><div class="line"><span class="comment">###</span></div><div class="line">//启动hive</div><div class="line">[root@hadoop001 ~]<span class="comment"># hive</span></div><div class="line">Logging initialized using configuration <span class="keyword">in</span> file:/opt/software/hive-1.1.0-cdh5.7.0/conf/hive-log4j.properties</div><div class="line">WARNING: Hive CLI is deprecated and migration to Beeline is recommended.</div><div class="line">//创建表emp</div><div class="line">create table emp(</div><div class="line">empno int,ename string,job string,mgr int,hiredate string,sal double,deptno int</div><div class="line">)row format delimited fields terminated by <span class="string">'\t'</span>;</div><div class="line">//创建表加载数据</div><div class="line">load data <span class="built_in">local</span> inpath <span class="string">"/opt/emp.txt"</span> into table pepole;</div><div class="line"></div><div class="line">hive&gt;</div></pre></td></tr></table></figure>
<p>至此安装结束</p>
<h2 id="8-Hive的基本操作"><a href="#8-Hive的基本操作" class="headerlink" title="8.Hive的基本操作"></a>8.Hive的基本操作</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div></pre></td><td class="code"><pre><div class="line"><span class="comment">#查看数据库</span></div><div class="line">show databases;</div><div class="line"><span class="comment">#使用数据库</span></div><div class="line">use datbase_name;</div><div class="line"><span class="comment">#查看表</span></div><div class="line">show tables;</div><div class="line"><span class="comment">#创建数据库</span></div><div class="line">create database datbase_name ;</div><div class="line"><span class="comment">#创建表</span></div><div class="line">create table pepole(pid int,name string,phone string) ROW FORMAT DELIMITED FIELDS TERMINATED BY <span class="string">','</span>;</div><div class="line"><span class="comment">#加载HDFS数据到表</span></div><div class="line">load data inpath <span class="string">'/user/hive/warehouse/pepole/customers.csv'</span> into table pepole ;</div><div class="line"><span class="comment">#加载本地数据表</span></div><div class="line">load data <span class="built_in">local</span> inpath <span class="string">"/opt/datas/customers.csv"</span> into table pepole;</div><div class="line"><span class="comment">#查询表</span></div><div class="line">select * from table-name ;</div><div class="line"><span class="comment">#查看表属性</span></div><div class="line">desc table-name;</div><div class="line"><span class="comment">#查看表详细属性</span></div><div class="line">desc extended table-name ;</div><div class="line"><span class="comment">#查看格式化表属性</span></div><div class="line">desc formatted table-name ;</div><div class="line"><span class="comment">#查看函数</span></div><div class="line">show <span class="built_in">functions</span> ;</div><div class="line"><span class="comment">#查看函数使用</span></div><div class="line">desc <span class="keyword">function</span> fun-name ;</div><div class="line"><span class="comment">#查看函数详细属性</span></div><div class="line">desc <span class="keyword">function</span> extended upper ;</div></pre></td></tr></table></figure>

        </div>

        <blockquote class="post-copyright">
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2017-10-02T15:44:44.873Z" itemprop="dateUpdated">2017-10-02 23:44:44</time>
</span><br>


        
        原始链接：<a href="/Hive/Hive--install.html" target="_blank" rel="external">http://xiejm.com/Hive/Hive--install.html</a>
        
    </div>
    <footer>
        <a href="http://xiejm.com">
            <img src="/img/avatar.jpg" alt="XieJM">
            XieJM
        </a>
    </footer>
</blockquote>

        


        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Hive/">Hive</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://xiejm.com/Hive/Hive--install.html&title=《Hive--安装》 — XieJM's Blog&pic=http://xiejm.com/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://xiejm.com/Hive/Hive--install.html&title=《Hive--安装》 — XieJM's Blog&source=Linux | Hadoop | CDH | Hive | Hbase | Spark" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://xiejm.com/Hive/Hive--install.html" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Hive--安装》 — XieJM's Blog&url=http://xiejm.com/Hive/Hive--install.html&via=http://xiejm.com" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://xiejm.com/Hive/Hive--install.html" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/Hive/Hive--UDF.html" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">Hive--UDF开发</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/Hadoop/Hadoop-2.6.0-cdh5.7.0-native.html" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">Hadoop-2.6.0-cdh5.7.0-native库缺失的问题</h4>
      </a>
    </div>
  
</nav>



    


<section class="comments" id="comments">
    <div id="disqus_thread"></div>
    <script>
    var disqus_shortname = 'true';
    lazyScripts.push('//' + disqus_shortname + '.disqus.com/embed.js')
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</section>













</article>



</div>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://xiejm.com/Hive/Hive--install.html&title=《Hive--安装》 — XieJM's Blog&pic=http://xiejm.com/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://xiejm.com/Hive/Hive--install.html&title=《Hive--安装》 — XieJM's Blog&source=Linux | Hadoop | CDH | Hive | Hbase | Spark" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://xiejm.com/Hive/Hive--install.html" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Hive--安装》 — XieJM's Blog&url=http://xiejm.com/Hive/Hive--install.html&via=http://xiejm.com" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://xiejm.com/Hive/Hive--install.html" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: false };


</script>

<script src="/js/main.min.js?v=1.6.13"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="/js/search.min.js?v=1.6.13" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>



<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = 'XieJM's Blog';
            clearTimeout(titleTime);
        } else {
            document.title = 'XieJM's Blog';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
